package cn.edu.tfswufe.pojo;

import java.util.Date;

public class BorrowRecord {
    private Long recordID; // 借阅记录编号（主键）
    private Long bookID; // 图书编号（外键，关联图书表）
    private Long readerID; // 读者编号（外键，关联读者表）
    private Date borrowDate; // 借书日期
    private Date dueDate; // 应还日期
    private Date returnDate; // 实际还书日期（可为空）
    private String status; // 借阅状态（如已借出、已归还、逾期等）

    // 构造方法
    public BorrowRecord() {
    }

    public BorrowRecord(Long recordID, Long bookID, Long readerID, Date borrowDate, Date dueDate, Date returnDate, String status) {
        this.recordID = recordID;
        this.bookID = bookID;
        this.readerID = readerID;
        this.borrowDate = borrowDate;
        this.dueDate = dueDate;
        this.returnDate = returnDate;
        this.status = status;
    }

    // Getter和Setter方法
    public Long getRecordID() {
        return recordID;
    }

    public void setRecordID(Long recordID) {
        this.recordID = recordID;
    }

    public Long getBookID() {
        return bookID;
    }

    public void setBookID(Long bookID) {
        this.bookID = bookID;
    }

    public Long getReaderID() {
        return readerID;
    }

    public void setReaderID(Long readerID) {
        this.readerID = readerID;
    }

    public Date getBorrowDate() {
        return borrowDate;
    }

    public void setBorrowDate(Date borrowDate) {
        this.borrowDate = borrowDate;
    }

    public Date getDueDate() {
        return dueDate;
    }

    public void setDueDate(Date dueDate) {
        this.dueDate = dueDate;
    }

    public Date getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(Date returnDate) {
        this.returnDate = returnDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}

